# -*- coding:utf-8 -*-
# from flask import Flask
# from flask_sqlalchemy import SQLAlchemy
# import redis
# from flask_wtf.csrf import CSRFProtect
# from flask_session import Session
from flask_script import Manager
from flask_migrate import MigrateCommand,Migrate
from config import Config
from ihome import create_app,db

app = create_app('development')
manage = Manager(app)
Migrate(db,app)
manage.add_command('db',MigrateCommand)


@app.route('/')
def index():
    return 'aa'

if __name__ == '__main__':
    app.run()


